layui.define(['layer'], function (exports) {

    var staticField = {
        lang: {
            id: "标识",
            label: "标题",
            index: "序号",
            tag: "表单类型",
            tagIcon: '图标',
            width: '宽度',
            height: "高度",
            span: '网格宽度',
            placeholder: "placeholder",
            defaultValue: "默认值",
            dateDefaultValue: '默认时间',
            labelWidth: "文本宽度",
            clearable: "是否清楚",
            prepend: "前缀",
            append: "追加",
            prefixIcon: '前缀图标',
            suffixIcon: '后缀图标',
            maxlength: "最大长度",
            showWordLimit: "是否限制字符",
            readonly: "只读",
            disabled: "禁用",
            required: "必填",
            columns: "列数",
            options: "选项",
            switchValue: "默认值",
            maxValue: "最大值",
            minValue: "最小值",
            dataMaxValue: "最大日期",
            dataMinValue: "最小日期",
            stepValue: "步长",
            dateType: "日期类型",
            dateFormat: "日期格式",
            half: "显示半星",
            theme: "皮肤",
            rateLength: "星星个数",
            interval: "间隔毫秒",
            startIndex: "开始位置",
            full: "是否全屏",
            arrow: "鼠标样式",
            contents: "内容",
            document: '帮助文档',
            input: "输入框",
            select: "下拉",
            checkbox: "多选组",
            radio: "单选组",
            date: "日期",
            layuieditor: "layuiEditor",
            iceeditor: "iceEditor",
            slider: "滑块",
            image: "图片",
            grid: "一行多列",
            colorpicker: "颜色选择器",
            textarea: "多行文本",
            rate: "评分控件",
            switch: "开关",
            password: "密码框",
            carousel: "轮播",
            text: "显示文本",
            uploadUrl: "上传路径",
            expression: "验证",
            file: "文件",
            autoplay: "自动切换",
            anim: "切换方式",
            arrow: "切换箭头",
            tab: "tab选项卡",
            tabHeaders: "tab标题",
            isInput: "显示输入框",
            dateRange: "日期范围",
            dateRangeDefaultValue: "默认范围",
            menu: "头部菜单",
            numberInput: "排序文本框",
            list: "列表",
            cron: "Cron表达式",
            cronUrl: "运行路径",
            labelGeneration: "标签组件",
            isEnter: "是否回车",
            buttonIcon: "按钮图标",
            buttonType: "按钮类型",
            isLabel: "显示标签",
            buttonSize: "组件尺寸",
            bottom: "按钮组件",
            buttonVlaue: "按钮文字",
            sign: "手写签名",
            i_avatar: '文件框ID',
            src_avatar: '文件ID',
            u_avatar: '上传按钮ID',
            fixed_Dept: '选部门',
            fixed_Employee: '选员工',
            fixed_Company: '选公司',
            fixed_Client: '选客户端',
            fixed_Files: '相关文件',
            fixed_Flow: '相关流程',
            fixed_ShenPi: '审批',
            fixed_Comment: '评论',
            fixed_Opinion: '意见'
        },
        templateFormList: [
            {
                text: '默认模板', imageUrl: szoa.client.path + "/static/img/11.PNG",
                value: [
                    {
                        "id": "input_1",
                        "index": 0,
                        "label": "单行文本",
                        "tag": "input",
                        "tagIcon": "input",
                        "placeholder": "请输入",
                        "defaultValue": null,
                        "labelWidth": 110,
                        "width": "100%",
                        "clearable": true,
                        "maxlength": null,
                        "showWordLimit": false,
                        "readonly": false,
                        "disabled": false,
                        "required": true,
                        "expression": "",
                        "document": ""
                    }
                ]
            }
        ],
        expressions: [{ text: '默认', value: "" }
            , { text: '数字', value: 'number' }
            , { text: '邮箱', value: 'email' }
            , { text: '手机', value: 'phone' }
            , { text: '身份证', value: 'identity' }
            , { text: '日期', value: 'date' }
            , { text: '网址', value: 'url' }
            , { text: '密码', value: 'pass' }
        ], anims: [{ text: '左右切换', value: 'default' }
            , { text: '上下切换', value: 'updown' }
            , { text: '渐隐渐显切换', value: 'fade' }
        ], arrows: [{ text: '悬停显示', value: 'hover' }
            , { text: '始终显示', value: 'always' }
            , { text: '始终不显示', value: 'none' }]
        , dateTypes: [{ text: '年选择器', value: 'year' }
            , { text: '年月选择器', value: 'month' }
            , { text: '时间选择器', value: 'time' }
            , { text: '日期选择器', value: 'date' }
            , { text: '日期时间选择器', value: 'datetime' }]
        , buttonTypes: [{ text: '原始', value: 'layui-btn-primary' }
            , { text: '默认', value: "" }
            , { text: '百搭', value: 'layui-btn-normal' }
            , { text: '暖色', value: 'layui-btn-warm' }
            , { text: '警告', value: ' layui-btn-danger' }]
        , buttonSizes: [{ text: '大型', value: 'layui-btn-lg' }
            , { text: '默认', value: "" }
            , { text: '小型', value: 'layui-btn-sm' }
            , { text: '迷你', value: 'layui-btn-xs' }]
        , dateFormats: ["yyyy年MM月", "yyyy-MM-dd", "dd/MM/yyyy", "yyyyMMdd", "yyyy-MM-dd HH:mm:ss", "yyyy年MM月dd日 HH时mm分ss秒"]
        , iceEditMenus: [
            { value: 'face', text: '表情' },
            { value: 'table', text: '表格' },
            { value: 'files', text: '附件' },
            { value: 'music', text: '音乐' },
            { value: 'video', text: '视频' },
            { value: 'insertImage', text: '图片' },
            { value: 'line', text: '菜单分割线' },
            { value: 'backColor', text: '字体背景颜色' },
            { value: 'fontSize', text: '字体大小' },
            { value: 'foreColor', text: '字体颜色' },
            { value: 'bold', text: '粗体' },
            { value: 'italic', text: '斜体' },
            { value: 'underline', text: '下划线' },
            { value: 'strikeThrough', text: '删除线' },
            { value: 'justifyLeft', text: '左对齐' },
            { value: 'justifyCenter', text: '居中对齐' },
            { value: 'justifyRight', text: '右对齐' },
            { value: 'indent', text: '增加缩进' },
            { value: 'outdent', text: '减少缩进' },
            { value: 'insertOrderedList', text: '有序列表' },
            { value: 'insertUnorderedList', text: '无序列表' },
            { value: 'superscript', text: '上标' },
            { value: 'subscript', text: '下标' },
            { value: 'createLink', text: '创建连接' },
            { value: 'unlink', text: '取消连接' },
            { value: 'hr', text: '水平线' },
            { value: 'removeFormat', text: '格式化样式' },
            { value: 'code', text: '源码' },
            { value: 'line', text: '菜单分割线' }
        ],
        formDesignerHtml: '<div class="layui-layout layui-layout-admin">\
            <div class="layui-header">\
                <div class="layui-logo">表单设计器</div>\
                <!-- 头部区域（可配合layui已有的水平导航） -->\
                <ul class="layui-nav layui-layout-left">\
                    <li class="layui-nav-item"><a href=""></a></li>\
                </ul>\
                <ul class="layui-nav layui-layout-right">\
                    <li class="layui-nav-item">\
                        <a id="submitsaveJson" href="javascript:;" class="submitsaveJson">提交</a>\
                    </li>\
                    <li class="layui-nav-item">\
                        <a id="saveJson" href="javascript:;" class="saveJson">缓存</a>\
                    </li>\
                    <li class="layui-nav-item">\
                        <a id="btnImportJson" href="javascript:;" class="importJson">导入数据</a>\
                    </li>\
                    <li class="layui-nav-item">\
                        <a id="btnExportJson" href="javascript:;" class="exportJson">导出数据</a>\
                    </li>\
                    <li class="layui-nav-item">\
                        <a href="javascript:;">预览</a>\
                        <dl class="layui-nav-child">\
                           <dd>\
                               <a href="javascript:;" class="layeropenPreviewForm">弹出窗口预览</a>\
                           </dd>\
                           <dd>\
                               <a href="javascript:;" class="winopenPreviewForm">打开新窗口预览</a>\
                           </dd>\
                        </dl>\
                    </li>\
                    <li class="layui-nav-item">\
                        <a href="javascript:;" class="generateCode">生成代码</a>\
                    </li>\
                    <li class="layui-nav-item">\
                        <a href="javascript:;" class="closeDesigner">退出设计器</a>\
                    </li>\
                </ul>\
            </div>\
            <div class="layui-side">\
                <div class="layui-side-scroll" style="width: 260px;">\
                    <!-- 左侧导航区域（可配合layui已有的垂直导航） -->\
                    <div class="layui-tab layui-tab-brief" lay-filter="components-list" style="margin-top:0;">\
                        <ul class="layui-tab-title">\
                            <li class="layui-this">组件</li>\
                            <li class="">模板</li>\
                        </ul>\
                        <div class="layui-tab-content">\
                            <div class="layui-tab-item layui-show">\
                                <div class="components-list" id="components-form-list">\
                                </div>\
                            </div>\
                            <div class="layui-tab-item" >\
                                <div id="template-form-list" class="components-list">\
                                </div>\
                            </div>\
                        </div>\
                    </div>\
                </div>\
            </div>\
            <div class="layui-body">\
                <!-- 内容主体区域 -->\
                <form class="layui-form layui-form-pane" style="height:99%;">\
                    <div class="layui-form" id="formDesignerForm" lay-filter="formDesignerForm" style="overflow-y:auto;">\
                        <div class="layui-row layui-empty">\
                            从左侧拖拽控件到此设计区域来【设计表单】\
                        </div>\
                    </div>\
                    <button type="button" class="layui-btn layui-hide" lay-submit lay-filter="*">立即提交</button>\
                </form>\
            </div>\
            <div class="layui-side-right">\
                <div class="layui-side-scroll" style="width: 350px;">\
                    <!-- 属性导航 -->\
                    <form class="layui-form  layui-form-pane">\
                        <div class="layui-tab layui-tab-brief" lay-filter="form-attr"  style="margin-top:0;">\
                            <ul class="layui-tab-title">\
                                <li class="layui-this">字段设置</li>\
                                <li>表单设置</li>\
                            </ul>\
                            <div class="layui-tab-content">\
                                <div class="layui-tab-item layui-show" id="columnProperty">\
                                </div>\
                                <div class="layui-tab-item" id="formProperty">\
                                    <!--表单属性-->\
                                    <div class="layui-form-item">\
                                        <label class="layui-form-label">表单ID</label>\
                                        <div class="layui-input-block">\
                                            <input type="text" name="formId" required="" lay-verify="required" placeholder="请输入表单ID" autocomplete="off" class="layui-input">\
                                        </div>\
                                    </div>\
                                    <div class="layui-form-item">\
                                        <label class="layui-form-label">表单名称</label>\
                                        <div class="layui-input-block">\
                                            <input type="text" name="formName" required="" lay-verify="required" placeholder="请输入表单名称" autocomplete="off" class="layui-input">\
                                        </div>\
                                    </div>\
                                    <div class="layui-form-item">\
                                        <label class="layui-form-label">数据源</label>\
                                        <div class="layui-input-block">\
                                            <input type="text" name="formUrl" required="" lay-verify="required" placeholder="请输入数据源" autocomplete="off" class="layui-input">\
                                        </div>\
                                    </div>\
                                    <div class="layui-form-item">\
                                        <label class="layui-form-label">渲染方式</label>\
                                        <div class="layui-input-block">\
                                            <select name="formViewType" lay-verify="required">\
                                                <option value="1" selected>弹窗式</option>\
                                                <option value="2">嵌入式</option>\
                                            </select>\
                                        </div>\
                                    </div>\
                                    <!--//end-->\
                                </div>\
                            </div>\
                        </div>\
                    </form>\
                </div>\
            </div>\
            </div>',
        formDefaultButton: '<div class="layui-form-item">\n' +
            '    <div class="layui-input-block">\n' +
            '        <button type="submit" class="layui-btn" lay-submit="" lay-filter="formDesigner_submit">提交</button>\n' +
            '        <button type="reset" class="layui-btn layui-btn-primary">重置</button>\n' +
            '    </div>\n' +
            '</div>',
        importHtml: '<div class="importjsoncodeview" style="display: none;">\n' +
            '    <textarea id="import-json-code-view"></textarea>\n' +
            '    <a href="javascript:;" class="layui-btn layui-btn-sm leftij" id="location-json-code">读取本地</a>\n' +
            '    <a href="javascript:;" class="layui-btn layui-btn-sm rightij" id="import-json-code">导入数据</a>\n' +
            '</div>',
        exportHtml: '<div class="htmlcodeview" style="display: none;">\n' +
            '    <textarea id="generate-code-html"></textarea>\n' +
            '    <pre class="layui-code" id="generate-code-view" lay-options="{skin:\'dark\',about:\'<button id=\\\'copy-html-code-click\\\' type=\\\'button\\\' class=\\\'layui-btn layui-btn-sm\\\' >复制</button>\'}"></pre>\n' +
            '    <a href="javascript:;" class="layui-btn layui-btn-normal layui-hide" id="copy-html-code">复制代码</a>\n' +
            '</div>',
        htmlCode: '<html>\n' +
            '<head>\n' +
            '    <meta charset="utf-8">\n' +
            '    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">\n' +
            '    <title>表单设计器代码</title>\n' +
            '    <script src="' + szoa.client.path + '/static/kaige/js/szload.js"></script>\n' +
            '    <link rel="stylesheet" href="' + szoa.client.path + '/static/kaige/layuiextend/cron.css" />\n' +
            '    <link rel="stylesheet" href="' + szoa.client.path + '/static/kaige/layuiextend/formDesigner.css" />\n' +
            '</head>\n' +
            '<body>\n' +
            '<div id="testdemo" style="margin: 10px 20px;">\n' +
            '    <form class="layui-form" style="height:100%;" id="formPreviewForm">\n' +
            '        {0}\n' +
            '        <div class="layui-form-item">\n' +
            '            <div class="layui-input-block">\n' +
            '                <button type="submit" class="layui-btn" lay-submit="" lay-filter="formPreviewForm">提交</button>\n' +
            '                <button type="reset" class="layui-btn layui-btn-primary">重置</button>\n' +
            '            </div>\n' +
            '        </div>\n' +
            '    </form>\n' +
            '</div>\n' +
            '<script>\n' +
            '    load_init_js([\n' +
            '        szoapcpath + \'/static/kaige/js/xm-select.js\',\n' +
            '        szoapcpath + \'/static/lib/Sortable/Sortable.js\',\n' +
            '        szoapcpath + \'/static/kaige/js/htmlformat.js\',\n' +
            '        szoapcpath + \'/static/kaige/js/jsformat.js\',\n' +
            '    ], function () {\n' +
            '        layui.config({\n' +
            '        base: szoapcpath + \'/static/kaige/layuiextend/\'\n' +
            '         }).use(["formDesigner","layer", "laytpl", "element", "form", "slider", "laydate", "rate","kaige", "colorpicker", "layuieditor", "carousel", "upload", "formField", "numberInput", "iconPicker", "cron", "kaige"], function () {\n' +
            '         var $ = layui.jquery\n' +
            '            , layer = layui.layer\n' +
            '            , laytpl = layui.laytpl\n' +
            '            , setter = layui.cache\n' +
            '            , element = layui.element\n' +
            '            , slider = layui.slider\n' +
            '            , laydate = layui.laydate\n' +
            '            , rate = layui.rate\n' +
            '            , colorpicker = layui.colorpicker\n' +
            '            , carousel = layui.carousel\n' +
            '            , form = layui.form\n' +
            '            , upload = layui.upload\n' +
            '            , layuieditor = layui.layuieditor\n' +
            '            , formField = layui.formField\n' +
            '            , hint = layui.hint\n' +
            '            , numberInput = layui.numberInput\n' +
            '            , iconPicker = layui.iconPicker\n' +
            '            , cron = layui.cron;\n' +
            '          {1}\n' +
            '        });\n' +
            '     });\n' +
            '</script>\n' +
            '</body>\n' +
            '</html>'
    }
    exports('staticField', staticField);

});